package com.example.design.adapter.interfaceadapter;

public class PhoneChargeAll {
    public static void main(String[] args) {
        AdapterAll adapterAll = new AdapterAll(){
            //覆盖写的方法；

            @Override
            public int voltage5V() {
                return 5;
            }

            @Override
            public int voltage12V() {
                return 12;
            }
        };

        System.out.println(adapterAll.voltage5V());
        System.out.println(adapterAll.voltage36V());
    }
}
